from dataclasses import dataclass, field, asdict

from framework.modfuncexecute import Argument


@dataclass
class CustomEvent:
    event_name: str
    function_path: str
    argument: Argument= field(default_factory=Argument)

    def todict(self):
        return asdict(self)

